<!--#include("./header.html")-->
<!--%import("filter/insert_theme_info.xml")-->
<!--%import("js/forum_admin.js")-->

<div class="xe-ui-panel">
	<div class="xe-ui-panel-content cleared">
		<form id="_form" action="./" method="post" onsubmit="return procFilter(this, insert_theme_info)" enctype="multipart/form-data">
			<input type="hidden" name="page" value="{$page}" />
			<input type="hidden" name="mid" value="{$module_info->mid}" />
			<input type="hidden" name="module_srl" value="{$module_info->module_srl}" />
			<input type="hidden" name="act" value="{Context::get('act')}" />

			<input type="hidden" name="use_anonymous" value="{$module_info->use_anonymous}" />
			<input type="hidden" name="consultation" value="{$module_info->consultation}" />
			<input type="hidden" name="allow_anonymous_search" value="{$module_info->allow_anonymous_search}" />

			<input type="hidden" name="list_count" value="{$module_info->list_count}" />
			<input type="hidden" name="search_list_count" value="{$module_info->search_list_count}" />
			<input type="hidden" name="page_count" value="{$module_info->page_count}" />

			<input type="hidden" name="title" value="{$module_info->title}" />
			<input type="hidden" name="comment" value="{$module_info->comment}" />


			<input type="hidden" name="admin_mail" value="{$module_info->admin_mail}" />
			<input type="hidden" name="header_text" value="{$module_info->header_text}" />
			<input type="hidden" name="footer_text" value="{$module_info->footer_text}" />
	
			<h2 class="xeAdmin triggerModuleThemeInfo"><a href="#">{$lang->module_theme_info}</a></h2>
			<table cellspacing="0" class="xe-ui-form-table containerModuleThemeInfo">
				<tbody>
				    <tr>
				        <td class="v-top nowrap"><p>{$lang->site_layout}</p></td>
				        <td>
				            <p>
					            <select name="layout_srl" class="xe-ui-panel-select">
					            <option value="0">{$lang->notuse}</option>
					            <!--@foreach($layout_list as $key => $val)-->
					            <option value="{$val->layout_srl}" <!--@if($module_info->layout_srl==$val->layout_srl)-->selected="selected"<!--@end-->>{$val->title} ({$val->layout})</option>
					            <!--@end-->
					            </select>
					            <p>{$lang->about_layout}</p>
					        </p>
				        </td>
				    </tr>
				    <tr>
				        <td class="v-top nowrap"><p>{$lang->forum_theme}</p></td>
				        <td>
				            <p>
					            <select name="skin" class="xe-ui-panel-select">
					                <!--@foreach($skin_list as $key=>$val)-->
					                <option value="{$key}" <!--@if($module_info->skin==$key ||(!$module_info->skin && $key=='xe_forum'))-->selected="selected"<!--@end-->>{$val->title}</option>
					                <!--@end-->
					            </select>
					            {$lang->about_skin}
					        </p>
				        </td>
				    </tr>
					<tr>
						<td class="v-top nowrap"><p>{$lang->mobile_view}</p></td>
						<td>
							<p>
								<input type="checkbox" name="use_mobile" value="Y" <!--@if($module_info->use_mobile == "Y")-->checked="checked"<!--@end--> />
								{$lang->about_mobile_view}
							</p>
						</td>
					</tr>
				    <tr>
				        <td class="v-top nowrap"><p>{$lang->mobile_layout}</p></td>
				        <td>
				            <p>
					            <select name="mlayout_srl" class="xe-ui-panel-select">
					            <option value="0">{$lang->notuse}</option>
					            <!--@foreach($mlayout_list as $key => $val)-->
					            <option value="{$val->layout_srl}" <!--@if($module_info->mlayout_srl==$val->layout_srl)-->selected="selected"<!--@end-->>{$val->title} ({$val->layout})</option>
					            <!--@end-->
					            </select>
					            <p>{$lang->about_layout}</p>
					        </p>
				        </td>
				    </tr>
				    <tr>
				        <td class="v-top nowrap"><p>{$lang->mobile_skin}</p></td>
				        <td>
				        	<p>
					            <select name="mskin" class="xe-ui-panel-select">
					                <!--@foreach($mskin_list as $key=>$val)-->
					                <option value="{$key}" <!--@if($module_info->mskin==$key ||(!$module_info->mskin && $key=='default'))-->selected="selected"<!--@end-->>{$val->title}</option>
					                <!--@end-->
					            </select>
					            {$lang->about_skin}
					        </p>
				        </td>
				    </tr>
				</tbody>
		    </table>
		    <script>
			jQuery("h2.triggerModuleThemeInfo").click(function () {
			jQuery("table.containerModuleThemeInfo").fadeToggle(100);
			jQuery(this).closest('div.xe-ui-panel-content').next('div.xe-ui-panel-controller').fadeToggle(100);
			});    
			</script>
		</form>
	</div>
	<div class="xe-ui-panel-controller">
	    <hr />
	    <p class="center">
	    	<a href="#" onclick="jQuery('#_form').submit();" class="xe-ui-button-green">{$lang->cmd_registration}</a>
			<a href="#" onclick="history.back(); return false;" class="xe-ui-button-gray"><span>{$lang->cmd_back}</span></a>
		</p>
	</div>
</div>

{$skin_content}
</div>